package com.firefly.web.controller.home.test;

//import com.firefly.netty.demo.NettyClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @description: 测试netty客户端链接服务
 * @author: lzg(萤火科技 ： 854378082 @ qq.com)
 * @date: 2022/11/26
 **/
@RestController
public class NettyController {
    @PostMapping("/netty")
    public Object netrty(HttpServletRequest request) throws Exception {
        String cmd = request.getParameter("cmd");
//        NettyClient client = new NettyClient();
//        return client.connect(cmd);
        return true;
    }
}
